/**
 * Created by Administrator on 2016/1/6.
 */
var express = require('express');
var router = express.Router();
var tools = require('../tools/tools');
/* GET home page. */
router.get('/', function(req, res, next) {
    var socket = tools.getIndex();
    if(socket){
        socket.emit("ctrl",req.query);
    }
    res.send("success");
});

module.exports = router;